package main

import "fmt"

func main() {
	var a [3][4]int

	for i := range a {
		for j := range a[i] {
			fmt.Print(a[i][j], " ")
		}
		fmt.Println()
	}

	b := [3][4]int{{1, 1, 1, 1}, {2, 2, 2, 2}, {3, 3, 3, 3}}
	fmt.Println(b)

	// 部分初始化
	c := [3][4]int{{1, 2, 3}, {4, 4, 4}}
	fmt.Println(c)

	// 指定初始化
	d := [3][4]int{1: {44, 55, 75, 23}}
	fmt.Println(d)
}
